@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
.iconfont,
[class^='el-sc-'],
[class*=' el-sc-'] {
  font-family: 'iconfont' !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  background-color: #f2f2f2;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}
ul {
  padding: 0;
  list-style: none;
  margin: 0;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: ' ';
    clear: both;
    height: 0;
  }
}
// main-container global css
.app-container {
  padding: 20px;
}
.serach_input {
  width: 160px;
  input {
    background: #fbfdff;
    border: 1px solid #999999;
    box-shadow: 0px 2px 7px 0px rgba(0, 0, 0, 0.04);
    border-radius: 7px;
  }
}
.el-drawer {
  width: 80% !important;
}
.mr_10 {
  margin-right: 10px;
}
.mr_15 {
  margin-right: 15px;
}
.ml_15 {
  margin-left: 15px;
}
.mt_15 {
  margin-top: 15px;
}
.t_c {
  text-align: center;
}
.search_box {
  margin-bottom: 10px;
}
.pages {
  text-align: right;
  .btn-prev,
  .btn-next {
    border: 1px solid #3355d9;
    background-color: #ffffff !important;
    color: #333;
  }
  .el-pager li.active + li {
    border-left: 1px solid #3355d9;
  }
  .el-pager {
    .number:not(.active) {
      border: 1px solid #3355d9;
      background-color: #ffffff;
    }
  }
  // .el-pager
  //  {
  //    li:not(.disabled).active{
  //      border: 1px solid #3355d9;
  //      color: #333!important;
  //      background-color: #ffffff!important;
  //    }
  //  }
}
.table_footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  .el-button {
    &:not(.is-disabled) {
      &:hover {
        background: #ffffff;
        border: 1px solid #4d6ef2;
      }
    }
  }
} 
.el-container {
  height: 100%;
}
//全局风格样式
.global_fonts {
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
  color: #606266;
}
.mce-tinymce {
  box-sizing: border-box !important;
}
//灰色框
.fks {
  background: #f4f6f8;
  //width: 500px;
  padding: 20px;
  color: #606266;
}
.main_con {
  padding: 20px;
  flex-direction: column;
  background: #f2f2f2;

  &.nobg {
    background: none;
  }

  &.nopd {
    padding: 0;
  }

  label {
    color: #7f7f7f;
    font-size: 14px;
  }

  .filter_con {
    background-color: #fff;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 15px;
    border-radius: 10px;
    align-items: center;
    &.nopt {
      padding-top: 0;
    }

    &.nomt {
      margin-top: 0;
    }

    &.nopt {
      padding-top: 0;
    }

    &.ds_block {
      display: block;

      .button_area {
        padding-bottom: 15px;
        border-bottom: 1px solid #f2f2f2;
      }
    }
  }

  .list_con {
    background-color: #fff;
    width: 100%;
    margin-top: 15px;
    padding: 15px;
    border-radius: 10px;
    &.nomt {
      margin-top: 0;
    }

    &.nopt {
      padding-top: 0;
    }

    &.nopb {
      padding-bottom: 0;
    }

    &.nopd {
      padding: 0;
    }
  }

  .edit_con {
    background-color: #fff;
    width: 100%;
    padding: 15px;

    &.nomt {
      margin-top: 0;
    }

    &.nopt {
      padding-top: 0;
    }

    &.nopd {
      padding: 0;
    }

    .edit_title {
      font-size: 16px;
      padding-bottom: 15px;
      border-bottom: 1px solid #f2f2f2;
      font-weight: bold;
    }

    .edit_content {
      // margin-top: 15px;
      margin-top: 22px;
      border-bottom: 1px solid #f2f2f2;

      &.nomt {
        margin-top: 0;
      }

      .edit_form {
        width: 460px;
      }
    }

    .edit_footer {
      margin-top: 15px;

      &.nomt {
        margin-top: 0;
      }

      &.nopt {
        padding-top: 0;
      }

      &.nopd {
        padding: 0;
      }
    }
  }
}

// 全局地图组件样式覆盖
.maps {
  .el-dialog__body {
    padding-top: 5px;
    padding-bottom: 15px;
  }
}
//全局滚动条样式
::-webkit-scrollbar {
  width: 5px; /* 纵向滚动条*/
  height: 5px; /* 横向滚动条 */
  background-color: #fff;
}

/*定义滚动条轨道 内阴影*/
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
  background-color: #fff;
}

/*定义滑块 内阴影*/
::-webkit-scrollbar-thumb {
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
  background-color: rgba(217, 224, 238, 1);
  border-radius: 5px;
}

.el-form-item .el-form-item {
  margin-bottom: 10px;
}
.el-radio__inner {
  width: 20px;
  height: 20px;
  &::after {
    width: 10px;
    height: 10px;
  }
}
.el-collapse-item__header {
  font-weight: bolder;
}
.el-slider {
  display: flex;
  align-items: center;
  &::before {
    display: flex;
    content: '';
    width: 16px;
    height: 14px;
    background: #2e68ea;
    border-radius: 7px 0 0 7px;
  }
  &::after {
    display: flex;
    content: '';
    width: 16px;
    height: 14px;
    background-image: url('../assets/images/sliderbg.png');
    background-repeat: repeat-x;
    border: 0 7px 0;
    border-radius: 0px 7px 7px 0;
  }
  .el-slider__runway {
    height: 14px;
    border-radius: 0;
    background-image: url('../assets/images/sliderbg.png');
    background-repeat: repeat-x;
    margin: 11px auto;
    .el-slider__button-wrapper {
      top: -11px;
      .el-slider__button {
        width: 34px;
        height: 14px;
        background: #ffffff;
        border: 2px solid #ececec;
        border-radius: 7px;
        position: relative;
        &::after {
          content: '';
          width: 8px;
          height: 6px;
          border-left: 2px solid #d9d9d9;
          border-right: 2px solid #d9d9d9;
          position: absolute;
          top: 2px;
          left: 10px;
        }
      }
    }

    .el-slider__bar {
      height: 14px;
      border-top-left-radius: 0px;
      border-bottom-left-radius: 0px;
    }
  }
}

//el table
.el-table {
  .el-table__header-wrapper {
    tr,
    th {
      background: #edf0f3;
      height: 64px;
    }
  }
  .el-table__fixed-header-wrapper {
    tr,
    th {
      background: #edf0f3;
      height: 64px;
    }
  }
  .el-table__body-wrapper {
    color: #999999;
    .cell {
      line-height: 30px;
    }
  }
}

.filter_area {
  .el-button {
    width: 112px;
    // height: 48px;
    background: #fbfdff;
    border: 1px solid #e9edf0;
    border-radius: 7px;
  }
  .el-select {
    input {
      background: #fbfdff;
      border: 1px solid #999999;
      box-shadow: 0px 2px 7px 0px rgba(0, 0, 0, 0.04);
      border-radius: 7px;
    }
    width: 160px;
    // height: 48px;
  }
}
.button_area {
  .el-button {
    background: #4d6ef2;
    box-shadow: 0px -4px 0px 0px rgba(0, 0, 0, 0.1) inset;
    &:hover {
      background: #3455da;
    }
  }
}
.el-checkbox__label {
  vertical-align: initial !important;
}

.el-radio {
  &.square {
    .el-radio__inner {
      display: inline-block;
      position: relative;
      border: 1px solid #dcdfe6;
      border-radius: 2px;
      box-sizing: border-box;
      width: 14px;
      height: 14px;
      background-color: #ffffff;
      z-index: 1;
      transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46), background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
      &::after {
        display: none;
      }
      &::before {
        box-sizing: content-box;
        content: '';
        border: 1px solid #ffffff;
        border-left: 0;
        border-top: 0;
        height: 7px;
        left: 4px;
        position: absolute;
        top: 1px;
        transform: rotate(45deg) scaleY(0);
        width: 3px;
        transition: -webkit-transform 0.15s ease-in 0.05s;
        transition: transform 0.15s ease-in 0.05s;
        transition: transform 0.15s ease-in 0.05s, -webkit-transform 0.15s ease-in 0.05s;
        transform-origin: center;
      }
    }
    .el-radio__input.is-checked .el-radio__inner {
      background-color: #2e68ea;
      border-color: #2e68ea;
      &::before {
        transform: rotate(45deg) scaleY(1);
      }
    }
  }
}
.el-form {
  .el-form-item__error {
    color: #ff9426;
  }
  .el-form-item.is-error .el-input__inner {
    border-color: #ff9426;
  }
}

.el-dialog {
  background: #ffffff;
  box-shadow: 0px 3px 16px 0px rgba(0, 0, 0, 0.46);
  border-radius: 10px;
  .el-icon-close {
    font-size: 24px;
    color: #999999;
    &:hover {
      color: #999999;
    }
  }
}

.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: center;
}

.u-flex {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.u-flex-col {
  flex-direction: column;
}
/* 垂直居中 */
.u-col-center {
  align-items: center;
}

/* 顶部对齐 */
.u-col-top {
  align-items: flex-start;
}

/* 底部对齐 */
.u-col-bottom {
  align-items: flex-end;
}

/* 左边对齐 */
.u-row-left {
  justify-content: flex-start;
}

/* 水平居中 */
.u-row-center {
  justify-content: center;
}

/* 右边对齐 */
.u-row-right {
  justify-content: flex-end;
}

/* 水平两端对齐，项目之间的间隔都相等 */
.u-row-between {
  justify-content: space-between;
}

/* 水平每个项目两侧的间隔相等，所以项目之间的间隔比项目与父元素两边的间隔大一倍 */
.u-row-around {
  justify-content: space-around;
}
.u-flex-1 {
  flex: 1;
}

.u-flex-2 {
  flex: 2;
}

.u-flex-3 {
  flex: 3;
}

.u-line {
  width: 100%;
  height: 1px;
  background: #d9d9d9;
}
// 定义内外边距，历遍1-80
@for $i from 0 through 80 {
  // 只要双数和能被5除尽的数
  @if $i % 2 == 0 or $i % 5 == 0 {
    // 得出：u-margin-30或者u-m-30
    .u-margin-#{$i},
    .u-m-#{$i} {
      margin: $i + px !important;
    }

    // 得出：u-padding-30或者u-p-30
    .u-padding-#{$i},
    .u-p-#{$i} {
      padding: $i + px !important;
    }

    @each $short, $long in l left, t top, r right, b bottom {
      // 缩写版，结果如： u-m-l-30
      // 定义外边距
      .u-m-#{$short}-#{$i} {
        margin-#{$long}: $i + px !important;
      }

      // 定义内边距
      .u-p-#{$short}-#{$i} {
        padding-#{$long}: $i + px !important;
      }

      // 完整版，结果如：u-margin-left-30
      // 定义外边距
      .u-margin-#{$long}-#{$i} {
        margin-#{$long}: $i + px !important;
      }

      // 定义内边距
      .u-padding-#{$long}-#{$i} {
        padding-#{$long}: $i + px !important;
      }
    }
  }
}
